package com.xuecheng.orders.exception;

import com.xuecheng.base.exception.XCPlusBaseException;

/**
 * @author 勾新杰
 * @version 1.0
 * @description: 订单已关闭异常
 * @date 2025/3/9 16:32
 */
public class TradeHasBeenClosedException extends XCPlusBaseException {

    TradeHasBeenClosedException(String message) {
        super(message);
    }

    public static void cast() {
        throw new TradeHasBeenClosedException(OrdersError.TRADE_HAS_BEEN_CLOSED.getErrMessage());
    }
}
